
import {useRouter} from 'vue-router'

const router = useRouter();

 export const goHome=()=>
    {
       router.push('/dashboard/base');
    }

export const loadScript = (src) => {
  return new Promise((resolve, reject) => {
    const script = document.createElement('script');
    script.src = src;
    script.onload = resolve;
    script.onerror = reject;
    document.head.appendChild(script);
  });
};